package com.example.micrweb.front.settings;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.info.License;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @description: TODO
 * @author: uu
 * @data: 2023/7/12 下午 02:51
 * @version: v1.0
 */
@Configuration
public class SwaggerConfigurationSettings {
    @Bean
    public OpenAPI docket(){

        return new OpenAPI().info(new Info()
                .title("盈利宝")
                .version("1.0")
                .description("前后端分离项目，前端Vue，后端SpringBoot + Dubbo分布式项目")
                .contact(new Contact().name("成名山").email("2946087337@qq.com").url("http://localhost:8000/api/v1/plat/info"))
                .license(new License().name("Apache 2.0")));
    }

}
